<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 驼峰 大驼峰 小驼峰
        var totalNum = 0; // 总分数
        for(var i=5; i>0; i--) {
            var ponit = prompt('请输入得分：')-0;
            totalNum = totalNum + ponit;
        }
        console.log('总分数:', totalNum);
        console.log('平均分数:', totalNum/5);
    </script>
</body>
</html>